Skip to contentSkip to conversation

Slow video playback on Kabini

Bug 88658 [email protected] 1 participant 14 messages Jan 21, 2015 – Feb 6, 2015

lore
Share & tools
lore

[email protected]

author Reviewed-by Christian König
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=88658

Bug ID: 88658
Summary: Slow video playback on Kabini
Product: Mesa
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

I am using a 64-bit Kabini based system (AMD Athlon 5350) with Kodi 14.0 on an up-to-date Arch linux.
Kodi plays this
https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMxeqlUiSkL-Dxe5C5BDVyw&dl=1&_subject_uid=6760021
small sample file fine with kernel 3.16.x, but with kernel >= 3.17 the playback is only 1 fps (like a slideshow). It is a hi10p video, so Kodi uses pure software decoding.

I've done a git bisect between 3.16 and 3.17-rc1 and found that 02376d8282b88f07d0716da6155094c8760b1a13 is the first bad commit.

commit 02376d8282b88f07d0716da6155094c8760b1a13

Author: Michel Dänzer <[email protected]>
Date:   Thu Jul 17 19:01:08 2014 +0900

drm/radeon: Allow write-combined CPU mappings of BOs in GTT (v2)

v2: fix rebase onto drm-fixes

Then I applied the patch found in comment 30 of bug 84627 attachment 11024 (as I use 64-bit system).

This patch worked around the problem on 3.17 and on the latest 3.19-rc5 kernel as well and now Kodi plays the above video 24 fps.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #2 from jtossenb <[email protected]> --- And the right video URL is:
https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMxeqlUiSkL-Dxe5C5BDVyw&dl=1&_subject_uid=67600211

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

jtossenb <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|Slow video playback on      |(bisected) Slow video
                   |Kabini                      |playback on Kabini
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #3 from Michel Dänzer <[email protected]> ---
What version of Mesa are you using? Does the problem already happen with Mesa commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6, or if not, can you bisect Mesa?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #4 from jtossenb <[email protected]> ---
My Arch Linux is up-to-date, I use Mesa 10.4.2 and so commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6 is included. I am ready to do bisecting Mesa if you wish, but at the moment I don't know where to start, what kernel version to use during bisecting Mesa.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #5 from Michel Dänzer <[email protected]> --- (In reply to jtossenb from comment #4)

Quoted 2 lines

My Arch Linux is up-to-date, I use Mesa 10.4.2 and so commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6 is included.

If it wasn't included, you wouldn't have the problem. :)

My question was: If you build Mesa *at* commit 07c65b85eada8dd34019763b6e82ed4257a9b4a6, does the problem occur with that? If not, please bisect Mesa between that commit and the 10.4.2 release. If yes, there's nothing to bisect.

Quoted 2 lines

I am ready to do bisecting Mesa if you wish, but at the moment I don't know where to start, what kernel version to use during bisecting Mesa.

Any kernel which exposes the problem in your testing so far should do.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #6 from smoki <[email protected]> ---

Well he can just try to revert this one again, Kodi seems to does not like
that:

http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/radeon/r600_buffer_common.c?id=7b4276d7acf2e0f77044cb50caa6ad936fa78786

@Michel

I guess this should be reverted again as Valley does not stutter with 3.19
kernel.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #7 from jtossenb <[email protected]> --- (In reply to smoki from comment #6)

Quoted 5 lines

Well he can just try to revert this one again, Kodi seems to does not like
that:

http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/drivers/radeon/
r600_buffer_common.c?id=7b4276d7acf2e0f77044cb50caa6ad936fa78786

Thanks, it was a good idea!
I've built Mesa 10.4.2 with the reverted commit and the problem solved, Kodi works fine now.
I used the original 3.18.2-2-ARCH kernel during the test.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #8 from Michel Dänzer <[email protected]> --- (In reply to jtossenb from comment #2)

Quoted 2 lines

And the right video URL is:
https://dl-web.dropbox.com/get/hi10p_sample.mp4?w=AAC8qnXfS0xxWbd5Fc2bkvWxMxeqlUiSkL-Dxe5C5BDVyw&dl=1&_subject_uid=67600211

I get error 403 for that.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #9 from jtossenb <[email protected]> --- Sorry. I hope it works.
https://www.dropbox.com/s/3ronrw57r3n8hsn/hi10p_sample.mp4?dl=1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #10 from Michel Dänzer <[email protected]> --- Created attachment 113144
--> https://bugs.freedesktop.org/attachment.cgi?id=113144&action=edit
st/mesa: Don't use PIPE_USAGE_STREAM for unpack PBOs

Does this Mesa patch help?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#12 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

--- Comment #11 from jtossenb <[email protected]> --- (In reply to Michel Dänzer from comment #10)

Quoted 1 line

Does this Mesa patch help?

Yes, it does!
mesa-10.4.3 + this patch works fine.
Thank you very much!

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#13 lore raw

[Bug 88658] (bisected) Slow video playback on Kabini

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=88658

Michel Dänzer <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Michel Dänzer <[email protected]> ---
Module: Mesa
Branch: master
Commit: a338dc01866ce50bf7555ee8dc08491c7f63b585 URL:
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a338dc01866ce50bf7555ee8dc08491c7f63b585

Author: Michel Dänzer <[email protected]>
Date:   Thu Feb  5 12:46:04 2015 +0900

st/mesa: Don't use PIPE_USAGE_STREAM for GL_PIXEL_UNPACK_BUFFER_ARB

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel